package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "group_manage")
public class GroupManage implements Serializable {
    @Id
    private Integer id;

    @Column(name = "group_id")
    private Integer groupId;

    @Column(name = "encrypt_group_id")
    private String encryptGroupId;

    @Column(name = "group_name")
    private String groupName;

    @Column(name = "group_url")
    private String groupUrl;

    @Column(name = "group_introduce")
    private String groupIntroduce;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ctime;

    private static final long serialVersionUID = 1L;

    public GroupManage(Integer id, Integer groupId, String encryptGroupId, String groupName, String groupUrl, String groupIntroduce, Date ctime) {
        this.id = id;
        this.groupId = groupId;
        this.encryptGroupId = encryptGroupId;
        this.groupName = groupName;
        this.groupUrl = groupUrl;
        this.groupIntroduce = groupIntroduce;
        this.ctime = ctime;
    }

    public GroupManage() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return group_id
     */
    public Integer getGroupId() {
        return groupId;
    }

    /**
     * @param groupId
     */
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    /**
     * @return encrypt_group_id
     */
    public String getEncryptGroupId() {
        return encryptGroupId;
    }

    /**
     * @param encryptGroupId
     */
    public void setEncryptGroupId(String encryptGroupId) {
        this.encryptGroupId = encryptGroupId == null ? null : encryptGroupId.trim();
    }

    /**
     * @return group_name
     */
    public String getGroupName() {
        return groupName;
    }

    /**
     * @param groupName
     */
    public void setGroupName(String groupName) {
        this.groupName = groupName == null ? null : groupName.trim();
    }

    /**
     * @return group_url
     */
    public String getGroupUrl() {
        return groupUrl;
    }

    /**
     * @param groupUrl
     */
    public void setGroupUrl(String groupUrl) {
        this.groupUrl = groupUrl == null ? null : groupUrl.trim();
    }

    /**
     * @return group_introduce
     */
    public String getGroupIntroduce() {
        return groupIntroduce;
    }

    /**
     * @param groupIntroduce
     */
    public void setGroupIntroduce(String groupIntroduce) {
        this.groupIntroduce = groupIntroduce == null ? null : groupIntroduce.trim();
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }
}